enum direction{
    case west
    case east
    case north
    case south
}


direction.east

var adir:direction

adir = .north

adir = direction.north


//switch 与 enum一起用 就不需要加default

enum coder{
    case odirCode(Int,Int,Int,Int)
    case tdirCode(String)
}

var something = coder.odirCode(3, 3, 3, 4)


switch something{
case let .odirCode(sys,prod,po,confirm)://进行值绑定
    print("\(sys) \(prod)  \(po) confirm")
default:
    print("no")
    
}



//原始值
enum weekday:Int{
    case mon=1,thu,thr,thet
}

weekday.thr.rawValue



